$(function(){
      //小轮播
      var smallSwiper = new Swiper("#swiper-min" , {
            autoplay: {
                  delay: 2000,
                  stopOnLastSlide: false,
                  disableOnInteraction: true,
            },
            // effect : "flip",
            loop :true,
            direction : "vertical",
            navigation : {
                  nextEl :".swiper-button-next",
                  prevEl :".swiper-button-prev",
            }
      });

      //选项卡
      var $tablis = $(".banner-left-tab li");
      var $bigTabs = $(".tab-contents .bigTab");
      $tablis.mouseover(function(){
            var index = $(this).index(".banner-left-tab li");
            $tablis.eq(index).addClass("active")
            $bigTabs.eq(index).addClass("active")
      })
      $tablis.mouseout (function(){
            $tablis.removeClass("active")
            $bigTabs.removeClass("active")
      })

      var $navlis = $(".nav-index li");
      var $poract = $(".nav-index div");
      $navlis.mouseover(function(){
            var index = $(this).index(".nav-index li");
            $navlis.eq(index).addClass("active");
            $poract.eq(index).addClass("active");
      })
      $navlis.mouseout(function(){
            $navlis.removeClass("active");
            $poract.removeClass("active");
      })
})

